<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>spi: Examples</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">spi
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('example.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Examples </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>You can refer to the below stated example applications for more details on how to use spi driver.</p>
<h1><a class="anchor" id="ex1"></a>
xspi_selftest_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example performs the basic selftest using the driver.</p>
<p>For details, see <a class="el" href="xspi__selftest__example_8c.html" title="This file contains a example for using the SPI Hardware and driver. ">xspi_selftest_example.c</a>.</p>
<h1><a class="anchor" id="ex2"></a>
xspi_atmel_flash_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the SPI driver and hardware device with an Atmel Serial Flash Device (AT45XX series). This example erases the Page, writes to the Page, reads back from the Page and compares the data.</p>
<p>For details, see xspi_atmel_flash_example.c.</p>
<h1><a class="anchor" id="ex3"></a>
xspi_eeprom_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the SPI driver and hardware device with a serial EEPROM device.</p>
<p>For details, see xspi_eeprom_example.c.</p>
<h1><a class="anchor" id="ex4"></a>
xspi_intel_flash_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the SPI driver and hardware device with an Intel Serial Flash Memory(S33) in the interrupt mode. This example erases a sector, writes to a Page within the sector, reads back from that Page and compares the data.</p>
<p>For details, see xspi_intel_flash_example.c.</p>
<h1><a class="anchor" id="ex5"></a>
xspi_intr_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the Spi driver and the Spi device using the interrupt mode.</p>
<p>For details, see <a class="el" href="xspi__intr__example_8c.html" title="This file contains a design example using the Spi driver (XSpi) and the Spi device using the interrup...">xspi_intr_example.c</a>.</p>
<h1><a class="anchor" id="ex6"></a>
xspi_low_level_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the low-level driver of the SPI driver. These macros are found in <a class="el" href="xspi__l_8h.html">xspi_l.h</a>. A simple loopback test is done within an SPI device in polled mode. This example works only with 8-bit wide data transfers.</p>
<p>For details, see <a class="el" href="xspi__low__level__example_8c.html" title="This file contains a design example using the low-level driver of the SPI driver (XSpi). ">xspi_low_level_example.c</a>.</p>
<h1><a class="anchor" id="ex7"></a>
xspi_numonyx_flash_quad_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the SPI driver and axi_qspi device with a Numonyx quad serial flash device in the interrupt mode. This example erases a Sector, writes to a Page within the Sector, reads back from that Page and compares the data.</p>
<p>For details, see xspi_numonyx_flash_quad_example.c.</p>
<h1><a class="anchor" id="ex8"></a>
xspi_polled_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the Spi driver and the Spi device using the polled mode.</p>
<p>For details, see <a class="el" href="xspi__polled__example_8c.html" title="This file contains a design example using the Spi driver (XSpi) and the Spi device using the polled m...">xspi_polled_example.c</a>.</p>
<h1><a class="anchor" id="ex9"></a>
xspi_slave_intr_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the Spi driver and the Spi device as a Slave, in interrupt mode.</p>
<p>For details, see <a class="el" href="xspi__slave__intr__example_8c.html" title="This file contains a design example using the Spi driver (XSpi) and the Spi device as a Slave...">xspi_slave_intr_example.c</a>.</p>
<h1><a class="anchor" id="ex10"></a>
xspi_slave_polled_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the Spi driver and the Spi device as a Slave, in polled mode.</p>
<p>For details, see <a class="el" href="xspi__slave__polled__example_8c.html" title="This file contains a design example using the Spi driver (XSpi) and the SPI device as a Slave...">xspi_slave_polled_example.c</a>.</p>
<h1><a class="anchor" id="ex11"></a>
xspi_stm_flash_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the SPI driver and hardware device with an STM serial Flash device (M25P series) in the interrupt mode. This example erases a Sector, writes to a Page within the Sector, reads back from that Page and compares the data.</p>
<p>For details, see xspi_stm_flash_example.c.</p>
<h1><a class="anchor" id="ex12"></a>
xspi_winbond_flash_quad_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the SPI driver and axi_qspi device with a Winbond quad serial flash device in the interrupt mode. This example erases a Sector, writes to a Page within the Sector, reads back from that Page and compares the data.</p>
<p>For details, see xspi_winbond_flash_quad_example.c.</p>
<h1><a class="anchor" id="ex13"></a>
xspi_winbond_flash_xip_example.c</h1>
<p>Contains an example on how to use the <a class="el" href="struct_x_spi.html" title="The XSpi driver instance data. ">XSpi</a> driver directly. This example shows the usage of the Spi driver and the Spi device configured in XIP Mode. This example reads data from the Flash Memory in the way RAM is accessed.</p>
<p>For details, see xspi_winbond_flash_xip_example.c. </p>
</div></div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
